<form method="POST" enctype="multipart/form-data" action="{{ path('fileupload') }}">
    <input type="file" name="foo" value=""/>
    <input type="submit" value="Upload File"/>
</form>